package adv3;

import java.util.Arrays;
import java.util.Random;

public class RaTest {

	public static void main(String[] args) {
		// Random
		Random r = new Random();
		for (int i = 1; i <= 20; i++) {
			System.out.println(r.nextDouble());// 正数
			System.out.println(r.nextGaussian());// 随机正负
			System.out.println(r.nextInt());
			System.out.println(r.nextBoolean());
			System.out.println(r.nextLong());
			System.out.println(">>>>>>>>>>>>>>");
		}
		byte[] b = new byte[40];
		r.nextBytes(b);
		System.out.println(Arrays.toString(b));
		// 1-33
		System.out.println(">>>>>>");
		for (int i = 1; i <= 6; i++) {
			int red = r.nextInt(33) + 1;
			System.out.print(red + " ");
		}
	}

}
